#include <iostream>
#include "Game.hpp"
#include "InputsManager.hpp"
#include "Map.hpp"

using namespace sf;

//Constructors

Game::Game(sf::RenderWindow &p_app, Vector2f p_window_size, int p_fps){
	app = &p_app;
	app->SetFramerateLimit(FPS);
}

//Others
int Game::run(){
	InputsManager inputsManager(*app);
	Map test(*app);
	while(app->IsOpened()){
		inputsManager.manage_inputs();

		app->Clear();
		test.affiche();
		app->Display();
	}

	return EXIT_SUCCESS;
}

//Destructor
Game::~Game(){

}